

import request from "@/service/axios/index";

const cateApi = {
    // 查询分类列表
    getCateList: (data) => {
        return request.post({ url: '/product/category/list', data })
    },
    // 获取分类详情
    getCate: (id) => {
        return request.get({ url: '/product/category/get?id=' + id })
    },
    // 新增分类
    createCate: (data) => {
        return request.post({ url: '/product/category/create', data })
    },

    // 删除分类
    deleteCate: (id) => {
        return request.delete({ url: '/product/category/delete?id=' + id })
    }
}
export default cateApi;
